package com.qfedu.controller;


import com.qfedu.entity.User;
import com.qfedu.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author LiJH
 * @since 2023-02-07
 */
@RestController
@RequestMapping("/user")
public class UserController {

    @Autowired
    private IUserService iUserService;

    @RequestMapping("findAll")
    public List<User> findAll() {
        return iUserService.list();
    }
}
